from Driver.Driver import MDriver
from part import PersonalCenterFace
class test5:
    Center=''
    def __init__(self):
        self.Center=PersonalCenterFace.PersonalCenterFace()
    # 检测界面
    def PersonalCenterFace(self):
        self.Center.Come()
        self.Center.PersonalCenterFace()
        MDriver.photo()
    # 修改昵称
    def PersonalCenterChageName(self,name):
        self.Center.PersonalCenterDeleteName()
        self.Center.PersonalCenterScanfName(name)
        self.Center.PersonalCenterChangeName()
        MDriver.photo()
    # 修改邮箱
    def PersonalCenterChageEmail(self,email):
        self.Center.PersonalCenterDeleteEmail()
        self.Center.PersonalCenterScanfEmail(email)
        self.Center.PersonalCenterChangeEmail()
        MDriver.photo()
    # 修改电话号码
    def PersonalCenterChagePhone(self,phone):
        self.Center.PersonalCenterDeletePhone()
        self.Center.PersonalCenterScanfPhone(phone)
        self.Center.PersonalCenterChangePhone()
        MDriver.photo()
    # 修改密码
    def PersonalCenterChagePass(self,old,new,re):
        self.Center.PersonalCenterDeleteOldPass()
        self.Center.PersonalCenterDeleteNewPass()
        self.Center.PersonalCenterDeleteAgainPass()
        self.Center.PersonalCenterScanfOldPass(old)
        self.Center.PersonalCenterScanfNewPass(new)
        self.Center.PersonalCenterScanfAgainPass(re)
        self.Center.PersonalCenterChangePass()
        MDriver.photo()
    # 修改个人简介
    def PersonalCenterChageShot(self,shot):
        self.Center.PersonalCenterDeleteShot()
        self.Center.PersonalCenterScanfShot(shot)
        self.Center.PersonalCenterChangeShot()
        MDriver.photo()